<div class="fly-home fly-panel"
    style="background-image: url({$User.cover?$User.cover:\'/static/home/res/images/cover.jpg\'}); background-size: 100%;background-repeat: no-repeat;">
    <img src="{$User.avatar ? $User.avatar : '/static/home/res/images/avatar/default.png'}">
    {if($User.auth == 1)}
    <i class="iconfont icon-renzheng" title="{$User.nickname}"></i>
    {/if}
    <h1>
        {$User.nickname}
        {if ($User.sex == 1) }
        <i class="iconfont icon-nan"></i>
        {elseif ($User.sex == 2) /}
        <i class="iconfont icon-nv"></i>
        {else /}
        <span>保密</span>
        {/if}
        <i class="layui-badge fly-badge-vip">VIP {$User.vip}</i>
        <!--
      <span style="color:#c00;">（管理员）</span>
      <span style="color:#5FB878;">（社区之光）</span>
      <span>（该号已被封）</span>
      -->
    </h1>

    {if $User.auth}
    <p style="padding: 10px 0; color: #5FB878;">认证信息：{$User.nickname}</p>
    {else}
    <p style="padding: 10px 0; color: #c00;">认证信息：未认证</p>
    {/if}
    <p class="fly-home-info">
        <i class="iconfont icon-jifen" title="积分"></i><span style="color: #FF7200;">{$User.point} 积分</span>
        <i class="iconfont icon-shijian"></i><span>{$User.createtime|date='Y-m-d'} 加入</span>
        <i class="iconfont icon-chengshi"></i><span>
            {if($User.province)}
            {$User.region_text}
            {else}
            保密
            {/if}
        </span>
    </p>

    <p class="fly-home-sign">
        {if($User.content)}
        {$User.content}
        {else}
        （这个人太懒了，什么都没留下）
        {/if}
    </p>

</div>

<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 fly-home-jie">
            <div class="fly-panel">
                <h3 class="fly-panel-title">{$User.nickname} 最近的提问</h3>
                <ul class="jie-row">
                    {if count($PostList) > 0}
                    {foreach $PostList as $item}
                    <li>
                        <span class="fly-jing">{$item.state_text}</span>
                        <a href="{:url('/home/post/info',['postid' => $item['id']])}"
                            class="jie-title">{$item.title}</a>
                        <i>{$item.createtime|date="Y-m-d H:i"}</i>
                        <em class="layui-hide-xs">{$item->visit_count}阅/{$item->comment_count}答</em>
                    </li>
                    {/foreach}
                    {else}
                    <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i
                            style="font-size:14px;">没有发表任何求解</i></div>
                    {/if}
                </ul>
                <div style="text-align: center">
                    <!-- <div class="laypage-main">
                      <a href="jie/index.html" class="laypage-next">更多求解</a>
                    </div> -->
                    {$PostList|raw}
                  </div>
            </div>
        </div>

        <div class="layui-col-md6 fly-home-da">
            <div class="fly-panel">
                <h3 class="fly-panel-title">{$User['nickname']} 最近的回答</h3>
                <ul class="home-jieda">
                    {foreach $CommentList as $item}
                    <li>
                        <p>
                            <span>{$item.createtime|date="Y-m-d H:i"}</span>
                            在<a href="{:url('/home/post/info',['postid' => $item['postid']])}" target="_blank">{$item.post.title}</a>中回答：
                        </p>
                        <div class="home-dacontent">
                            <pre>
                                {$item.content|raw}      
                            </pre>
                        </div>
                    </li>
                    {/foreach}
                    <!-- <div class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div> -->
                </ul>
                <div style="text-align: center">
                    <!-- <div class="laypage-main">
                      <a href="jie/index.html" class="laypage-next">更多求解</a>
                    </div> -->
                    {$CommentList|raw}
                  </div>
            </div>
        </div>
    </div>
</div>